import axios from "axios";
import Result from "@/ts/returnType.ts";

const loginApi = (data: any): Promise<Result> => {
  return axios({
    method: "post",
    url: "/login",
    data
  });
};

const logoutApi = () : Promise<Result> => {
    return axios({
        method: "post",
        url: "/logout"
    });
}

export { loginApi , logoutApi};
